﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class MZYH1212 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Processingline_Entity",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Deviceid = table.Column<int>(type: "int", nullable: false),
                    StationUp = table.Column<int>(type: "int", nullable: false),
                    PreStationUp = table.Column<int>(type: "int", nullable: false),
                    BackStationUp = table.Column<int>(type: "int", nullable: false),
                    AreaUp = table.Column<int>(type: "int", nullable: false),
                    StationDown = table.Column<int>(type: "int", nullable: false),
                    PreStationDown = table.Column<int>(type: "int", nullable: false),
                    BackStationDown = table.Column<int>(type: "int", nullable: false),
                    AreaDown = table.Column<int>(type: "int", nullable: false),
                    TaskTypeDown = table.Column<int>(type: "int", nullable: false),
                    Flow = table.Column<int>(type: "int", nullable: false),
                    IsEnable = table.Column<bool>(type: "bit", nullable: false),
                    TaskTypeUp = table.Column<int>(type: "int", nullable: false),
                    GetHeighUp = table.Column<float>(type: "real", nullable: false),
                    PutHeighUp = table.Column<float>(type: "real", nullable: false),
                    GetHeighDown = table.Column<float>(type: "real", nullable: false),
                    PutHeighDown = table.Column<float>(type: "real", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Processingline_Entity", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Processingline_Entity");
        }
    }
}
